package edu.rpi.bt.client.domain;

public class Trip {
    private Destination[] destinations;
    private int tripPointer = 0;
    
    Trip(){}
    
    Trip( Destination[] d ){
        destinations = d;
    }
    
    public Destination getNextDestination(){
        if( this.tripPointer > destinations.length - 1){
            return null;
        }
        return destinations[this.tripPointer++];
    }
    
    public void resetTrip(){
        tripPointer = 0;
    }
}
